<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/staginfo-tags" prefix="om"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
    /*
    * 创建标签、部门等新增页面
    */
    
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>标签管理</title>
</head>
<body>
<!-- 新增标签 -->
<div id="tag_dlg" class="easyui-dialog tagdialog_new"
        style="width:550px;height:400px;padding:10px" closed="true"
        buttons="#new_tag_buttons" modal="true">
        <form id="tagform_new" method="post" novalidate>
            <table class="dialog_table">
                <tr>
                    <td style="width: 50px">标签名：</td>
                    <td style="width: 170px"><input name="tag.name" id="name"
                        class="easyui-validatebox dialog_text" required="true"
                        ontagdown="clearInfo()"></td>
                    <td></td>
                </tr>
                <tr>
                    <td valign="top">描述：</td>
                    <td colspan="4"><textarea name="tag.description"
                            id="description"></textarea></td>
                </tr>
                <tr>
                    <td style="width: 50px">父标签：</td>
                    <td style="width: 170px">
                    <input class="easyui-combobox common_tag_type_new" name="tag.pid"
                           panelHeight="125" id="tag_type_new"
                           data-options="editable:false">
                   </td>
                </tr>
                <tr>
                    <td colspan="4" style="text-align: center; "><span id="infor"></span>
                    </td>
                </tr>
            </table>
            <br>
        </form>
    </div>
    <div id="new_tag_buttons">
        <a href="javascript:void(0)" class="easyui-linkbutton"
            iconCls="icon-ok" onclick="javascript:common.saveAllNew(common.tagSaveUrl,
            		'#tagform_new','#tag_dlg',common.reloadTagList,
            		common.tagQueryUrl,common.isTag)">保存</a> <a
            href="javascript:void(0)" class="easyui-linkbutton"
            iconCls="icon-cancel"
            onclick="javascript:$('#tag_dlg').dialog('close')">取消</a>
    </div>
    
    <!-- 新增部门 -->
    <div id="new_dept_dlg" class="easyui-dialog deptdialog_new"
        style="width:550px;height:400px;padding:10px" closed="true"
        buttons="#new_dept_buttons" modal="true">
        <form id="deptform_new" method="post" novalidate>
            <table class="dialog_table">
                <tr>
                    <td style="width: 50px">单位名称：</td>
                    <td style="width: 170px"><input name="dept.name" id="name"
                        class="easyui-validatebox dialog_text" required="true"
                        onkeydown="clearInfo()"
                        missingMessage="单位名称不可为空！"></td>

                    <td style="width: 30px"></td>
                    <td style="width: 50px">上级部门/单位：</td>
                    <td style="width: 170px">
                        <input class="easyui-combobox common_dept_new" name="dept.pid" 
                            id="dept_pid" panelHeight="125" 
                            data-options="editable:false">                   
                    </td>
                </tr>

                <tr>
                    <td valign="top">描述：</td>
                    <td colspan="4"><textarea name="dept.description"
                            id="description"></textarea></td>
                </tr>
                <tr>
                    <td></td>
                    <td colspan="4" style="text-align: center; "><span id="infor"></span>
                    </td>
                </tr>
            </table>
            <br>
        </form>
    </div>
    <div id="new_dept_buttons">
        <a href="javascript:void(0)" class="easyui-linkbutton"
            iconCls="icon-ok" onclick="javascript:common.saveAllNew(common.deptSaveUrl,
                '#deptform_new','#new_dept_dlg',common.reloadDeptList,
                common.deptQueryUrl,common.isDept)">保存</a> <a
            href="javascript:void(0)" class="easyui-linkbutton"
            iconCls="icon-cancel"
            onclick="javascript:$('#new_dept_dlg').dialog('close')">取消</a>
    </div>
    
    <!-- 新增角色 -->
    <div id="new_role_dlg" class="easyui-dialog roledialog_new"
        style="width:500px;height:300px;padding:10px" closed="true"
        buttons="#new_role_buttons" modal="true">
        <form id="roleform_new" method="post">
            <table class="dialog_table">
                <tr>
                    <td style="width: 50px">角色名：</td>
                    <td style="width: 430px"><input name="role.name" id="rolename"
                        class="easyui-validatebox dialog_text" required="true"
                        onblur="checkName('#new_role_info')"> </td>
                </tr>
                <tr>
                    <td  valign="top">备注：</td>
                    <td><textarea  name="role.description" id="description"></textarea>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td style="text-align: center;"><span id="new_role_info"></span>
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <div id="new_role_buttons">
        <a href="javascript:void(0)" class="easyui-linkbutton"
            iconCls="icon-ok" onclick="javascript:common.saveAllNew(common.roleSaveUrl,
                '#roleform_new','#new_role_dlg',common.reloadRoleList,
                common.roleQueryUrl,common.isRole)">保存</a> <a
            href="javascript:void(0)" class="easyui-linkbutton"
            iconCls="icon-cancel"
            onclick="javascript:$('#new_role_dlg').dialog('close')">取消</a>
    </div>
</body>
</html>